#include <stdio.h>
#include <time.h>
#include <unistd.h>
#include <stdlib.h>

int main(int argc, char const *argv[])
{

    while (1)
    {
        time_t t1;
        t1 = time(NULL);
        struct tm *l_time = localtime(&t1);
        printf("%d年%d月%d日\n", l_time->tm_year + 1900, l_time->tm_mon, l_time->tm_mday);
        printf("%d时%d分%d秒\n", l_time->tm_hour, l_time->tm_min, l_time->tm_sec);
        sleep(1);
        system("clear");
    }

    return 0;
}
